package valerij_timakov.home_finances.application_handlers;

import javax.faces.context.ExceptionHandler;
import javax.faces.context.ExceptionHandlerFactory;

public class AppExceptionHandlerFactory extends ExceptionHandlerFactory  {

	private ExceptionHandlerFactory parent;
	
	public AppExceptionHandlerFactory(ExceptionHandlerFactory parent) {
		this.parent = parent;
	}
	 
	@Override
	public ExceptionHandler getExceptionHandler() {
		ExceptionHandler result = parent.getExceptionHandler();
		result = new AppExceptionHandler(result);
		return result;
	}
}
